package com.heima.behavior.service;

import com.heima.model.behavior.pojos.ApBehaviorEntry;

public interface ApBehaviorEntryService {
     /**
      * 查询行为实体
      *
      * @param userId      用户id
      * @param equipmentId 设备id
      * @return
      */
     ApBehaviorEntry findByUserIdOrEquipmentId(Integer userId, Integer equipmentId);


     <T> T findBehaviorTraceByEntryIdAndArticleId
             (Long articleId, Integer equipmentId, Class<T> entityClass);

     ApBehaviorEntry getApBehaviorEntryByUserIdOrEquipmentId(Integer equipmentId);
}
